﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using ITM495.OOExamples.Core.Logger;

namespace ITM495.OOExamples.Core.Shapes
{
    public class Rectangle: Shape
    {
        public Rectangle(int x, int y): base(x, y)
        {}

        public override void Draw(ILogger logger)
        {
            logger.Log("Drawing Rectangle at {0}:{1}.", X, Y);
        }

        public override double Area()
        {
            return X*Y;
        }
    }
}
